473,421 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

disabling mouse wheel scroll in drop-down list?

Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?

Thanks

Oct 18 '06 #1
14 13758
ef*****@epitome.com.sg skrev:
Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?
Short answer: no

Oct 18 '06 #2
Henrik Stidsen wrote:
ef*****@epitome.com.sg skrev:
>Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?

Short answer: no
It's possible. I suppose the OP means <SELECT SIZE=1 with "drop-down
list". FF&&NS do not react on wheel events on such elements, so no
problem there. As for MSIE (6+),

<select size="1" onMouseWheel="return false;">

should do.

--
Bart

Oct 18 '06 #3
Bart Van der Donck said the following on 10/18/2006 5:34 AM:
Henrik Stidsen wrote:
>ef*****@epitome.com.sg skrev:
>>Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?
Short answer: no

It's possible. I suppose the OP means <SELECT SIZE=1 with "drop-down
list". FF&&NS do not react on wheel events on such elements, so no
problem there. As for MSIE (6+),

<select size="1" onMouseWheel="return false;">
Test that in a decent browser :)
should do.
That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.

But, it is now added to my bookmarklet to reenable *my* IE to work the
way *I* want it to work.

Best solution: Design your app in a sensible manner so that my mouse
wheel doesn't screw it up.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 18 '06 #4
Randy Webb skrev:
Best solution: Design your app in a sensible manner so that my mouse
wheel doesn't screw it up.
Agreed - but actually its often the browsers fault that the scrollwheel
screws up anything.

Oct 19 '06 #5
Randy Webb wrote:
Bart Van der Donck said the following on 10/18/2006 5:34 AM:
<select size="1" onMouseWheel="return false;">

Test that in a decent browser :)

That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.
A classic Ignoratio Elenchi. I don't say anything about where/how/if
the onMouseWheel-event should be used. My suggestion is a sheer
technical and practical answer to the original question; and IE-FF-NS
are quite decent browsers.

--
Bart

Oct 19 '06 #6
Bart Van der Donck said the following on 10/19/2006 3:47 AM:
Randy Webb wrote:
>Bart Van der Donck said the following on 10/18/2006 5:34 AM:
>> <select size="1" onMouseWheel="return false;">
Test that in a decent browser :)

That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.

A classic Ignoratio Elenchi.
Perhaps, but who cares?
I don't say anything about where/how/if the onMouseWheel-event should be
used.
You didn't discourage it's use either.
My suggestion is a sheer technical and practical answer to the original question;
Technical answer, yes. Practical answer, no.
and IE-FF-NS are quite decent browsers.
One out of 3 isn't bad.
Of the 3 you mention though, only one supports screwing with my mouse wheel.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 19 '06 #7
Henrik Stidsen said the following on 10/19/2006 3:12 AM:
Randy Webb skrev:
>Best solution: Design your app in a sensible manner so that my mouse
wheel doesn't screw it up.

Agreed - but actually its often the browsers fault that the scrollwheel
screws up anything.
No, it is the programmer who screws it up, the browser only does what it
is told to do. And by not understanding that, it doesn't make it the
"browsers fault" that you want behavior different from what the browser
provides.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 19 '06 #8
Randy Webb wrote:
Bart Van der Donck said the following on 10/19/2006 3:47 AM:
Randy Webb wrote:
Bart Van der Donck said the following on 10/18/2006 5:34 AM:
<select size="1" onMouseWheel="return false;">
Test that in a decent browser :)

That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.
A classic Ignoratio Elenchi.

Perhaps, but who cares?
Another Ignoratio Elenchi :-)
I don't say anything about where/how/if the onMouseWheel-event should be
used.

You didn't discourage it's use either.
True, since I did not make any statement about it.
My suggestion is a sheer technical and practical answer to the original question;

Technical answer, yes. Practical answer, no.
Practical in a sense that it's intended for immediate use on his page.

--
Bart

Oct 19 '06 #9
Randy Webb skrev:
No, it is the programmer who screws it up, the browser only does what it
is told to do. And by not understanding that, it doesn't make it the
"browsers fault" that you want behavior different from what the browser
provides.
Scenario:
A radiobutton group on a website.
The user selects an option and scrolls the wheel to scroll the page.
The browser instead changes his selection to the last radiobutton and
then scrolls the page.

Whos fault ? The guy who made the website ? The browser ? The User ?

And yes, this actually happens in some browsers, It might be the mouse
driver thats faulty - but thats not the programmers fault either.

Oct 19 '06 #10
ASM
Henrik Stidsen a écrit :
>
Scenario:
A radiobutton group on a website.
The user selects an option and scrolls the wheel to scroll the page.
The browser instead changes his selection to the last radiobutton and
then scrolls the page.

Whos fault ? The guy who made the website ? The browser ? The User ?

And yes, this actually happens in some browsers, It might be the mouse
driver thats faulty - but thats not the programmers fault either.

can you give an url where that happens ?
(natural change of selected button when scroll by mousewheel)

--
ASM
Oct 19 '06 #11
ASM skrev:
And yes, this actually happens in some browsers, It might be the mouse
driver thats faulty - but thats not the programmers fault either.
can you give an url where that happens ?
(natural change of selected button when scroll by mousewheel)
Sorry no, not at the moment. But I do know that it was a problem with
the Cisco CCNA online tests at the school where I took them.

Oct 19 '06 #12

ASM wrote:
Henrik Stidsen a écrit :
Scenario:
A radiobutton group on a website.
The user selects an option and scrolls the wheel to scroll the page.
The browser instead changes his selection to the last radiobutton and
then scrolls the page.

can you give an url where that happens ?
(natural change of selected button when scroll by mousewheel)
This happens to me all the time at tvguide.com. I'll click the
pulldown to change the start time of the show grid, then without
thinking, use the mouse wheel to scroll down. Of course, because the
focus is still on the select box, it changes the selection instead.
Tvguide.com then goes into fits trying to keep up with my changing
start time. Practically locks me up. Hate it!

Kev

Oct 19 '06 #13

Kevin Darling wrote:
ASM wrote:
Henrik Stidsen a écrit :
Scenario:
A radiobutton group on a website.

This happens to me all the time at tvguide.com.
Ooops. Didn't notice the "radiobutton" thingie. Still, I wish tvguide
had a select for the start time, and then a Go button like many
websites. I know they're trying to help speed things up, but boy it's
so easy to mouse-wheel into trouble ;-)

Or, for that matter, use the arrow keys to scroll into trouble as well!

Kev

Oct 19 '06 #14
Kevin Darling schrieb:
Kevin Darling wrote:
>ASM wrote:
>>Henrik Stidsen a écrit :
Scenario:
A radiobutton group on a website.
This happens to me all the time at tvguide.com.

Ooops. Didn't notice the "radiobutton" thingie. Still, I wish tvguide
had a select for the start time, and then a Go button like many
websites. I know they're trying to help speed things up, but boy it's
so easy to mouse-wheel into trouble ;-)

Or, for that matter, use the arrow keys to scroll into trouble as well!
I agree that this wheel behaviour on form elements is disturbing, but I
also agree with most posters that this is no reason to try changing the
user interface.

Might be a good idea to post a feature request to Mozilla? Scrolling an
element if the pointer is over the element that has the focus, and
scrolling the page if the pointer is somewhere else would IMO be a
consistent behaviour.

--
Markus
Oct 19 '06 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: AccessWhiz | last post by:
I have been trying desperately for the past few days to figure out why the MouseWheel solution that I retrieved from the Lebans website won't work. The access database included with the solution...
1
by: Marcin | last post by:
Im using MS Access 2000. i have a main form and ona subform that is scrolled vertically. unfortunately i use mouse scroll to scroll this subform. I appreciate your help
0
by: june | last post by:
Hi: How to get mouse device type (how many button, scroll/wheel?) if I have multiple mice installed. I know if there is only one mouse , we can use getSytemMetrics() to get button of number, is...
4
by: ML | last post by:
I am trying to use the mouse wheel event on a numeric input box to allow the use to scroll to inc/dec the value by 1. The issue I am having is that the delta value returned seems to be off. From...
1
by: Ima Loozer | last post by:
On one of my forms I have a text box sized and shaped to display multiple lines. The max content of the field is such that the text box may display less than all of the data in the field. ...
1
by: Jeff Williams | last post by:
I have an application which I need to change the data record which is displayed on screen by using the scroll wheel of the mouse. I would like to call a forward and back function/method when the...
5
bartonc
by: bartonc | last post by:
My development environment has a setting for a single font size buried in the preferences dialog. Every once in a while, the font would change to a new size. I assumed that there was a magic control...
2
by: wpollans | last post by:
Hello, I need to able to write JS that will click on a link with the middle mouse button - so that the link target will open in a new window or tab - using firefox. Or is there a better (more...
1
by: 3338761 | last post by:
I fished through previous posts and found this link to microsoft's site for the code and steps to disable the mousewheel from scrolling through records: ...
5
by: Wayneyh | last post by:
Hi All I want to stop the scroll wheel on the mouse. I have looked through the forum and downloaded the file from MouseWheelOnOff. I have entered the code Private Sub Form_Load() 'Turn...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.